package br.com.social.mobile.entities;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name="TB_CHAT_MESSAGE")
public class ChatMessage extends AbstractEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1846067492058752646L;

	@Column(name="ID_CHAT")
    private Long nuIdChat;
	
	@Column(name="DS_MESSAGE")
	private String dsMessage;
	
	@Column(name="DT_MESSAGE")
	private Date dtMessage;	

	@Column(name="ID_USER_SEND")
	private Long idUserSend;

	public Long getNuIdChat() {
		return nuIdChat;
	}

	public void setNuIdChat(Long nuIdChat) {
		this.nuIdChat = nuIdChat;
	}

	public String getDsMessage() {
		return dsMessage;
	}

	public void setDsMessage(String dsMessage) {
		this.dsMessage = dsMessage;
	}

	public Date getDtMessage() {
		return dtMessage;
	}

	public void setDtMessage(Date dtMessage) {
		this.dtMessage = dtMessage;
	}

	public Long getIdUserSend() {
		return idUserSend;
	}

	public void setIdUserSend(Long idUserSend) {
		this.idUserSend = idUserSend;
	}

	@Override
	public String toString() {
		return "ChatMessage [getId()=" + getId() + ", nuIdChat=" + nuIdChat
				+ ", dsMessage=" + dsMessage + ", dtMessage=" + dtMessage
				+ ", idUserSend=" + idUserSend + "]";
	}		
	

}
